package com.yangyouqi.posthorse.core.repository;

import com.yangyouqi.posthorse.core.domain.Manager;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author 杨友奇
 * @Time 2018/6/5
 */
public interface ManagerRepository extends JpaRepository<Manager,Long> {
    /**
     * 查询用户，返回为布尔类型
     */
    public Boolean existsByUsername(String userName);

    public Manager findByUsernameAndPassword(String username,String password);
}
